package org.dandsoft.blackbox.laboratory.tests;

/**
 * @author Vilyuzhanin Denis (Fin)
 */
public class CountingSpeed {

    public static void main(String[] args) {
        byte[] counters = new byte[1024 * 1024 * 1024];
        long t1 = System.currentTimeMillis();
        for (int i = 0; i < counters.length; i++) {
            counters[i]++;
        }
        long t2 = System.currentTimeMillis();

        System.out.println("Duration: " + (t2 - t1));
    }
}
